export default {
	data() {
		return {
			debounceTimer: null,
		}
	},
	methods: {
		debounce(callback, wait) {
			if(this.debounceTimer) {
				clearTimeout(this.debounceTimer)
			}
			this.debounceTimer = setTimeout(() => {
				callback()
				this.debounceTimer = null
			}, wait)
		}
	}
}